﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="DokumentProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class DokumentProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.Dokument, NetROS.Tiers.Entities.DokumentKey>
	{		
		#region Get from Many To Many Relationship Functions
		#region GetByIDParentFromRadniNalogVeza
		
		/// <summary>
		///		Gets tblDokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="iDParent"></param>
		/// <returns>Returns a typed collection of Dokument objects.</returns>
		public TList<Dokument> GetByIDParentFromRadniNalogVeza(System.Int32 iDParent)
		{
			int count = -1;
			return GetByIDParentFromRadniNalogVeza(null,iDParent, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets NetROS.Tiers.Entities.Dokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public TList<Dokument> GetByIDParentFromRadniNalogVeza(System.Int32 iDParent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDParentFromRadniNalogVeza(null, iDParent, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromRadniNalogVeza(TransactionManager transactionManager, System.Int32 iDParent)
		{
			int count = -1;
			return GetByIDParentFromRadniNalogVeza(transactionManager, iDParent, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDParent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromRadniNalogVeza(TransactionManager transactionManager, System.Int32 iDParent,int start, int pageLength)
		{
			int count = -1;
			return GetByIDParentFromRadniNalogVeza(transactionManager, iDParent, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="iDParent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromRadniNalogVeza(System.Int32 iDParent,int start, int pageLength, out int count)
		{
			
			return GetByIDParentFromRadniNalogVeza(null, iDParent, start, pageLength, out count);
		}


		/// <summary>
		///		Gets tblDokument objects from the datasource by IDParent in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public abstract TList<Dokument> GetByIDParentFromRadniNalogVeza(TransactionManager transactionManager,System.Int32 iDParent, int start, int pageLength, out int count);
		
		#endregion GetByIDParentFromRadniNalogVeza
		
		#region GetByIDChildFromRadniNalogVeza
		
		/// <summary>
		///		Gets tblDokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="iDChild"></param>
		/// <returns>Returns a typed collection of Dokument objects.</returns>
		public TList<Dokument> GetByIDChildFromRadniNalogVeza(System.Int32 iDChild)
		{
			int count = -1;
			return GetByIDChildFromRadniNalogVeza(null,iDChild, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets NetROS.Tiers.Entities.Dokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public TList<Dokument> GetByIDChildFromRadniNalogVeza(System.Int32 iDChild, int start, int pageLength)
		{
			int count = -1;
			return GetByIDChildFromRadniNalogVeza(null, iDChild, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromRadniNalogVeza(TransactionManager transactionManager, System.Int32 iDChild)
		{
			int count = -1;
			return GetByIDChildFromRadniNalogVeza(transactionManager, iDChild, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDChild"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromRadniNalogVeza(TransactionManager transactionManager, System.Int32 iDChild,int start, int pageLength)
		{
			int count = -1;
			return GetByIDChildFromRadniNalogVeza(transactionManager, iDChild, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="iDChild"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromRadniNalogVeza(System.Int32 iDChild,int start, int pageLength, out int count)
		{
			
			return GetByIDChildFromRadniNalogVeza(null, iDChild, start, pageLength, out count);
		}


		/// <summary>
		///		Gets tblDokument objects from the datasource by IDChild in the
		///		tblRadniNalogVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblRadniNalogVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public abstract TList<Dokument> GetByIDChildFromRadniNalogVeza(TransactionManager transactionManager,System.Int32 iDChild, int start, int pageLength, out int count);
		
		#endregion GetByIDChildFromRadniNalogVeza
		
		#region GetByIDParentFromVeza
		
		/// <summary>
		///		Gets tblDokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="iDParent"></param>
		/// <returns>Returns a typed collection of Dokument objects.</returns>
		public TList<Dokument> GetByIDParentFromVeza(System.Int32 iDParent)
		{
			int count = -1;
			return GetByIDParentFromVeza(null,iDParent, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets NetROS.Tiers.Entities.Dokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public TList<Dokument> GetByIDParentFromVeza(System.Int32 iDParent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDParentFromVeza(null, iDParent, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromVeza(TransactionManager transactionManager, System.Int32 iDParent)
		{
			int count = -1;
			return GetByIDParentFromVeza(transactionManager, iDParent, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDParent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromVeza(TransactionManager transactionManager, System.Int32 iDParent,int start, int pageLength)
		{
			int count = -1;
			return GetByIDParentFromVeza(transactionManager, iDParent, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="iDParent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDParentFromVeza(System.Int32 iDParent,int start, int pageLength, out int count)
		{
			
			return GetByIDParentFromVeza(null, iDParent, start, pageLength, out count);
		}


		/// <summary>
		///		Gets tblDokument objects from the datasource by IDParent in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="iDParent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public abstract TList<Dokument> GetByIDParentFromVeza(TransactionManager transactionManager,System.Int32 iDParent, int start, int pageLength, out int count);
		
		#endregion GetByIDParentFromVeza
		
		#region GetByIDChildFromVeza
		
		/// <summary>
		///		Gets tblDokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="iDChild"></param>
		/// <returns>Returns a typed collection of Dokument objects.</returns>
		public TList<Dokument> GetByIDChildFromVeza(System.Int32 iDChild)
		{
			int count = -1;
			return GetByIDChildFromVeza(null,iDChild, 0, int.MaxValue, out count);
			
		}
		
		/// <summary>
		///		Gets NetROS.Tiers.Entities.Dokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public TList<Dokument> GetByIDChildFromVeza(System.Int32 iDChild, int start, int pageLength)
		{
			int count = -1;
			return GetByIDChildFromVeza(null, iDChild, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromVeza(TransactionManager transactionManager, System.Int32 iDChild)
		{
			int count = -1;
			return GetByIDChildFromVeza(transactionManager, iDChild, 0, int.MaxValue, out count);
		}
		
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDChild"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromVeza(TransactionManager transactionManager, System.Int32 iDChild,int start, int pageLength)
		{
			int count = -1;
			return GetByIDChildFromVeza(transactionManager, iDChild, start, pageLength, out count);
		}
		
		/// <summary>
		///		Gets Dokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="iDChild"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of tblDokument objects.</returns>
		public TList<Dokument> GetByIDChildFromVeza(System.Int32 iDChild,int start, int pageLength, out int count)
		{
			
			return GetByIDChildFromVeza(null, iDChild, start, pageLength, out count);
		}


		/// <summary>
		///		Gets tblDokument objects from the datasource by IDChild in the
		///		tblVeza table. Table tblDokument is related to table tblDokument
		///		through the (M:N) relationship defined in the tblVeza table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <param name="iDChild"></param>
		/// <remarks></remarks>
		/// <returns>Returns a TList of Dokument objects.</returns>
		public abstract TList<Dokument> GetByIDChildFromVeza(TransactionManager transactionManager,System.Int32 iDChild, int start, int pageLength, out int count);
		
		#endregion GetByIDChildFromVeza
		
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.DokumentKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		FK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="iDUserPrimio"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(System.Int32? iDUserPrimio)
		{
			int count = -1;
			return GetByIDUserPrimio(iDUserPrimio, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		FK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserPrimio"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(TransactionManager transactionManager, System.Int32? iDUserPrimio)
		{
			int count = -1;
			return GetByIDUserPrimio(transactionManager, iDUserPrimio, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		FK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserPrimio"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(TransactionManager transactionManager, System.Int32? iDUserPrimio, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserPrimio(transactionManager, iDUserPrimio, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		fK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserPrimio"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(System.Int32? iDUserPrimio, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserPrimio(null, iDUserPrimio, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		fK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserPrimio"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(System.Int32? iDUserPrimio, int start, int pageLength,out int count)
		{
			return GetByIDUserPrimio(null, iDUserPrimio, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik key.
		///		FK_tblDokument_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserPrimio"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDUserPrimio(TransactionManager transactionManager, System.Int32? iDUserPrimio, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		FK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="iDUserIzdao"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(System.Int32 iDUserIzdao)
		{
			int count = -1;
			return GetByIDUserIzdao(iDUserIzdao, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		FK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserIzdao"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(TransactionManager transactionManager, System.Int32 iDUserIzdao)
		{
			int count = -1;
			return GetByIDUserIzdao(transactionManager, iDUserIzdao, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		FK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserIzdao"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(TransactionManager transactionManager, System.Int32 iDUserIzdao, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserIzdao(transactionManager, iDUserIzdao, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		fK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserIzdao"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(System.Int32 iDUserIzdao, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserIzdao(null, iDUserIzdao, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		fK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserIzdao"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(System.Int32 iDUserIzdao, int start, int pageLength,out int count)
		{
			return GetByIDUserIzdao(null, iDUserIzdao, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDjelatnik1 key.
		///		FK_tblDokument_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserIzdao"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDUserIzdao(TransactionManager transactionManager, System.Int32 iDUserIzdao, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		FK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByIDDokumentTip(iDDokumentTip, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		FK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(TransactionManager transactionManager, System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByIDDokumentTip(transactionManager, iDDokumentTip, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		FK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(TransactionManager transactionManager, System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTip(transactionManager, iDDokumentTip, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		fK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDDokumentTip"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDDokumentTip(null, iDDokumentTip, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		fK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(System.Int32 iDDokumentTip, int start, int pageLength,out int count)
		{
			return GetByIDDokumentTip(null, iDDokumentTip, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblDokumentTip key.
		///		FK_tblDokument_tblDokumentTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTip(TransactionManager transactionManager, System.Int32 iDDokumentTip, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		FK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="iDKlijent"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDKlijent(iDKlijent, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		FK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent)
		{
			int count = -1;
			return GetByIDKlijent(transactionManager, iDKlijent, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		FK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent, int start, int pageLength)
		{
			int count = -1;
			return GetByIDKlijent(transactionManager, iDKlijent, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		fK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKlijent"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(System.Int32? iDKlijent, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDKlijent(null, iDKlijent, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		fK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDKlijent"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(System.Int32? iDKlijent, int start, int pageLength,out int count)
		{
			return GetByIDKlijent(null, iDKlijent, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblKlijent key.
		///		FK_tblDokument_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDKlijent"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDKlijent(TransactionManager transactionManager, System.Int32? iDKlijent, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		FK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="iDNacinTransporta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(System.Int32? iDNacinTransporta)
		{
			int count = -1;
			return GetByIDNacinTransporta(iDNacinTransporta, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		FK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinTransporta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(TransactionManager transactionManager, System.Int32? iDNacinTransporta)
		{
			int count = -1;
			return GetByIDNacinTransporta(transactionManager, iDNacinTransporta, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		FK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinTransporta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(TransactionManager transactionManager, System.Int32? iDNacinTransporta, int start, int pageLength)
		{
			int count = -1;
			return GetByIDNacinTransporta(transactionManager, iDNacinTransporta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		fK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNacinTransporta"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(System.Int32? iDNacinTransporta, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDNacinTransporta(null, iDNacinTransporta, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		fK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNacinTransporta"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(System.Int32? iDNacinTransporta, int start, int pageLength,out int count)
		{
			return GetByIDNacinTransporta(null, iDNacinTransporta, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinOtpreme key.
		///		FK_tblDokument_tblNacinOtpreme Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinTransporta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinTransporta(TransactionManager transactionManager, System.Int32? iDNacinTransporta, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		FK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="iDNacinPlacanja"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(System.Int32? iDNacinPlacanja)
		{
			int count = -1;
			return GetByIDNacinPlacanja(iDNacinPlacanja, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		FK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinPlacanja"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(TransactionManager transactionManager, System.Int32? iDNacinPlacanja)
		{
			int count = -1;
			return GetByIDNacinPlacanja(transactionManager, iDNacinPlacanja, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		FK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinPlacanja"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(TransactionManager transactionManager, System.Int32? iDNacinPlacanja, int start, int pageLength)
		{
			int count = -1;
			return GetByIDNacinPlacanja(transactionManager, iDNacinPlacanja, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		fK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNacinPlacanja"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(System.Int32? iDNacinPlacanja, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDNacinPlacanja(null, iDNacinPlacanja, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		fK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNacinPlacanja"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(System.Int32? iDNacinPlacanja, int start, int pageLength,out int count)
		{
			return GetByIDNacinPlacanja(null, iDNacinPlacanja, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblNacinPlacanja key.
		///		FK_tblDokument_tblNacinPlacanja Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNacinPlacanja"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDNacinPlacanja(TransactionManager transactionManager, System.Int32? iDNacinPlacanja, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		FK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="iDOrganizacijaOd"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(System.Int32? iDOrganizacijaOd)
		{
			int count = -1;
			return GetByIDOrganizacijaOd(iDOrganizacijaOd, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		FK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaOd"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(TransactionManager transactionManager, System.Int32? iDOrganizacijaOd)
		{
			int count = -1;
			return GetByIDOrganizacijaOd(transactionManager, iDOrganizacijaOd, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		FK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaOd"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(TransactionManager transactionManager, System.Int32? iDOrganizacijaOd, int start, int pageLength)
		{
			int count = -1;
			return GetByIDOrganizacijaOd(transactionManager, iDOrganizacijaOd, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		fK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaOd"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(System.Int32? iDOrganizacijaOd, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDOrganizacijaOd(null, iDOrganizacijaOd, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		fK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaOd"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(System.Int32? iDOrganizacijaOd, int start, int pageLength,out int count)
		{
			return GetByIDOrganizacijaOd(null, iDOrganizacijaOd, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija key.
		///		FK_tblDokument_tblOrganizacija Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaOd"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaOd(TransactionManager transactionManager, System.Int32? iDOrganizacijaOd, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		FK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(System.Int32? iDOrganizacijaPrema)
		{
			int count = -1;
			return GetByIDOrganizacijaPrema(iDOrganizacijaPrema, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		FK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(TransactionManager transactionManager, System.Int32? iDOrganizacijaPrema)
		{
			int count = -1;
			return GetByIDOrganizacijaPrema(transactionManager, iDOrganizacijaPrema, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		FK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(TransactionManager transactionManager, System.Int32? iDOrganizacijaPrema, int start, int pageLength)
		{
			int count = -1;
			return GetByIDOrganizacijaPrema(transactionManager, iDOrganizacijaPrema, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		fK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(System.Int32? iDOrganizacijaPrema, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDOrganizacijaPrema(null, iDOrganizacijaPrema, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		fK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(System.Int32? iDOrganizacijaPrema, int start, int pageLength,out int count)
		{
			return GetByIDOrganizacijaPrema(null, iDOrganizacijaPrema, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacija1 key.
		///		FK_tblDokument_tblOrganizacija1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaPrema"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaPrema(TransactionManager transactionManager, System.Int32? iDOrganizacijaPrema, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		FK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(System.Int32? iDOrganizacijaZiroRacun)
		{
			int count = -1;
			return GetByIDOrganizacijaZiroRacun(iDOrganizacijaZiroRacun, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		FK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(TransactionManager transactionManager, System.Int32? iDOrganizacijaZiroRacun)
		{
			int count = -1;
			return GetByIDOrganizacijaZiroRacun(transactionManager, iDOrganizacijaZiroRacun, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		FK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(TransactionManager transactionManager, System.Int32? iDOrganizacijaZiroRacun, int start, int pageLength)
		{
			int count = -1;
			return GetByIDOrganizacijaZiroRacun(transactionManager, iDOrganizacijaZiroRacun, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		fK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(System.Int32? iDOrganizacijaZiroRacun, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDOrganizacijaZiroRacun(null, iDOrganizacijaZiroRacun, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		fK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(System.Int32? iDOrganizacijaZiroRacun, int start, int pageLength,out int count)
		{
			return GetByIDOrganizacijaZiroRacun(null, iDOrganizacijaZiroRacun, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblOrganizacijaZiroRacun key.
		///		FK_tblDokument_tblOrganizacijaZiroRacun Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDOrganizacijaZiroRacun"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDOrganizacijaZiroRacun(TransactionManager transactionManager, System.Int32? iDOrganizacijaZiroRacun, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		FK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="iDValute"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(System.Int32? iDValute)
		{
			int count = -1;
			return GetByIDValute(iDValute, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		FK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDValute"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(TransactionManager transactionManager, System.Int32? iDValute)
		{
			int count = -1;
			return GetByIDValute(transactionManager, iDValute, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		FK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDValute"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(TransactionManager transactionManager, System.Int32? iDValute, int start, int pageLength)
		{
			int count = -1;
			return GetByIDValute(transactionManager, iDValute, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		fK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDValute"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(System.Int32? iDValute, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDValute(null, iDValute, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		fK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDValute"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(System.Int32? iDValute, int start, int pageLength,out int count)
		{
			return GetByIDValute(null, iDValute, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblDokument_tblValuta key.
		///		FK_tblDokument_tblValuta Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDValute"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Dokument objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDValute(TransactionManager transactionManager, System.Int32? iDValute, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.Dokument Get(TransactionManager transactionManager, NetROS.Tiers.Entities.DokumentKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByIDStatusDatumIDDokumentTipIDDateModified(null,iDStatus, datum, iDDokumentTip, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatusDatumIDDokumentTipIDDateModified(null, iDStatus, datum, iDDokumentTip, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(TransactionManager transactionManager, System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByIDStatusDatumIDDokumentTipIDDateModified(transactionManager, iDStatus, datum, iDDokumentTip, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(TransactionManager transactionManager, System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatusDatumIDDokumentTipIDDateModified(transactionManager, iDStatus, datum, iDDokumentTip, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count)
		{
			return GetByIDStatusDatumIDDokumentTipIDDateModified(null, iDStatus, datum, iDDokumentTip, iD, dateModified, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K22_K4_K2_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusDatumIDDokumentTipIDDateModified(TransactionManager transactionManager, System.Int32 iDStatus, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(null,dokumentMijenjaCijenu, datum, dateModified, iD, iDStatus, iDDokumentTip, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count = -1;
			return GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(null, dokumentMijenjaCijenu, datum, dateModified, iD, iDStatus, iDDokumentTip, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(TransactionManager transactionManager, System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(transactionManager, dokumentMijenjaCijenu, datum, dateModified, iD, iDStatus, iDDokumentTip, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(TransactionManager transactionManager, System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count = -1;
			return GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(transactionManager, dokumentMijenjaCijenu, datum, dateModified, iD, iDStatus, iDDokumentTip, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip, int start, int pageLength, out int count)
		{
			return GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(null, dokumentMijenjaCijenu, datum, dateModified, iD, iDStatus, iDDokumentTip, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K27_K4_K16_K1_K22_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="dokumentMijenjaCijenu"></param>
		/// <param name="datum"></param>
		/// <param name="dateModified"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByDokumentMijenjaCijenuDatumDateModifiedIDIDStatusIDDokumentTip(TransactionManager transactionManager, System.Int32 dokumentMijenjaCijenu, System.DateTime datum, System.DateTime dateModified, System.Int32 iD, System.Int32 iDStatus, System.Int32 iDDokumentTip, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByDatumIDDokumentTipIDStatusIDDateModified(null,datum, iDDokumentTip, iDStatus, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByDatumIDDokumentTipIDStatusIDDateModified(null, datum, iDDokumentTip, iDStatus, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(TransactionManager transactionManager, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByDatumIDDokumentTipIDStatusIDDateModified(transactionManager, datum, iDDokumentTip, iDStatus, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(TransactionManager transactionManager, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByDatumIDDokumentTipIDStatusIDDateModified(transactionManager, datum, iDDokumentTip, iDStatus, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count)
		{
			return GetByDatumIDDokumentTipIDStatusIDDateModified(null, datum, iDDokumentTip, iDStatus, iD, dateModified, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_5_1331900212__K4_K2_K22_K1_K16 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="datum"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByDatumIDDokumentTipIDStatusIDDateModified(TransactionManager transactionManager, System.DateTime datum, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(System.Int32 iD, System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByIDIDDokumentTip(null,iD, iDDokumentTip, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(System.Int32 iD, System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count = -1;
			return GetByIDIDDokumentTip(null, iD, iDDokumentTip, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(TransactionManager transactionManager, System.Int32 iD, System.Int32 iDDokumentTip)
		{
			int count = -1;
			return GetByIDIDDokumentTip(transactionManager, iD, iDDokumentTip, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(TransactionManager transactionManager, System.Int32 iD, System.Int32 iDDokumentTip, int start, int pageLength)
		{
			int count = -1;
			return GetByIDIDDokumentTip(transactionManager, iD, iDDokumentTip, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(System.Int32 iD, System.Int32 iDDokumentTip, int start, int pageLength, out int count)
		{
			return GetByIDIDDokumentTip(null, iD, iDDokumentTip, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K1_K2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDIDDokumentTip(TransactionManager transactionManager, System.Int32 iD, System.Int32 iDDokumentTip, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDDokumentTipIDIDStatus(null,iDDokumentTip, iD, iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDIDStatus(null, iDDokumentTip, iD, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDDokumentTipIDIDStatus(transactionManager, iDDokumentTip, iD, iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDIDStatus(transactionManager, iDDokumentTip, iD, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus, int start, int pageLength, out int count)
		{
			return GetByIDDokumentTipIDIDStatus(null, iDDokumentTip, iD, iDStatus, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_7_1331900212__K2_K1_K22 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iD"></param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDIDStatus(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iD, System.Int32 iDStatus, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusIDDatum(null,iDDokumentTip, iDStatus, iD, datum, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusIDDatum(null, iDDokumentTip, iDStatus, iD, datum, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusIDDatum(transactionManager, iDDokumentTip, iDStatus, iD, datum, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusIDDatum(transactionManager, iDDokumentTip, iDStatus, iD, datum, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum, int start, int pageLength, out int count)
		{
			return GetByIDDokumentTipIDStatusIDDatum(null, iDDokumentTip, iDStatus, iD, datum, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K2_K22_K1_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusIDDatum(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.Int32 iD, System.DateTime datum, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum)
		{
			int count = -1;
			return GetByIDStatusIDIDDokumentTipDatum(null,iDStatus, iD, iDDokumentTip, datum, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatusIDIDDokumentTipDatum(null, iDStatus, iD, iDDokumentTip, datum, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(TransactionManager transactionManager, System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum)
		{
			int count = -1;
			return GetByIDStatusIDIDDokumentTipDatum(transactionManager, iDStatus, iD, iDDokumentTip, datum, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(TransactionManager transactionManager, System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatusIDIDDokumentTipDatum(transactionManager, iDStatus, iD, iDDokumentTip, datum, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum, int start, int pageLength, out int count)
		{
			return GetByIDStatusIDIDDokumentTipDatum(null, iDStatus, iD, iDDokumentTip, datum, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_8_1331900212__K22_K1_K2_K4 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="iD"></param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="datum"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDStatusIDIDDokumentTipDatum(TransactionManager transactionManager, System.Int32 iDStatus, System.Int32 iD, System.Int32 iDDokumentTip, System.DateTime datum, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumIDDateModified(null,iDDokumentTip, iDStatus, datum, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumIDDateModified(null, iDDokumentTip, iDStatus, datum, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumIDDateModified(transactionManager, iDDokumentTip, iDStatus, datum, iD, dateModified, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumIDDateModified(transactionManager, iDDokumentTip, iDStatus, datum, iD, dateModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count)
		{
			return GetByIDDokumentTipIDStatusDatumIDDateModified(null, iDDokumentTip, iDStatus, datum, iD, dateModified, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_K16_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="dateModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumIDDateModified(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, System.DateTime dateModified, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumID(null,iDDokumentTip, iDStatus, datum, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumID(null, iDDokumentTip, iDStatus, datum, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumID(transactionManager, iDDokumentTip, iDStatus, datum, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDDokumentTipIDStatusDatumID(transactionManager, iDDokumentTip, iDStatus, datum, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByIDDokumentTipIDStatusDatumID(null, iDDokumentTip, iDStatus, datum, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblDokument_9_1331900212__K2_K22_K4_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDDokumentTip"></param>
		/// <param name="iDStatus"></param>
		/// <param name="datum"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDDokumentTipIDStatusDatumID(TransactionManager transactionManager, System.Int32 iDDokumentTip, System.Int32 iDStatus, System.DateTime datum, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDStatus(null,iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatus(null, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDStatus(transactionManager, iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatus(transactionManager, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(System.Int32 iDStatus, int start, int pageLength, out int count)
		{
			return GetByIDStatus(null, iDStatus, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblDokument_Datum index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Dokument> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblDokument index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public NetROS.Tiers.Entities.Dokument GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblDokument index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public NetROS.Tiers.Entities.Dokument GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblDokument index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public NetROS.Tiers.Entities.Dokument GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblDokument index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public NetROS.Tiers.Entities.Dokument GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblDokument index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public NetROS.Tiers.Entities.Dokument GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblDokument index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Dokument"/> class.</returns>
		public abstract NetROS.Tiers.Entities.Dokument GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region _tblDokument_Get_Bez_Veze_ID 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_ID' stored procedure. 
		/// </summary>
		/// <param name="IDDokumentToFind"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_ID(System.Int32? @IDDokumentToFind)
		{
			return Get_Bez_Veze_ID(null, 0, int.MaxValue , @IDDokumentToFind);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_ID' stored procedure. 
		/// </summary>
		/// <param name="IDDokumentToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_ID(int start, int pageLength, System.Int32? @IDDokumentToFind)
		{
			return Get_Bez_Veze_ID(null, start, pageLength , @IDDokumentToFind);
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_ID' stored procedure. 
		/// </summary>
		/// <param name="IDDokumentToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_ID(TransactionManager transactionManager, System.Int32? @IDDokumentToFind)
		{
			return Get_Bez_Veze_ID(transactionManager, 0, int.MaxValue , @IDDokumentToFind);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_ID' stored procedure. 
		/// </summary>
		/// <param name="IDDokumentToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> Get_Bez_Veze_ID(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDDokumentToFind);
		
		#endregion
		
		#region _tblDokument_GetHasStorno 
		
		/// <summary>
		///	This method wrap the '_tblDokument_GetHasStorno' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDDokumentTipStorno"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> GetHasStorno(System.Int32? @IDDokument, System.Int32? @IDDokumentTipStorno)
		{
			return GetHasStorno(null, 0, int.MaxValue , @IDDokument, @IDDokumentTipStorno);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_GetHasStorno' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDDokumentTipStorno"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> GetHasStorno(int start, int pageLength, System.Int32? @IDDokument, System.Int32? @IDDokumentTipStorno)
		{
			return GetHasStorno(null, start, pageLength , @IDDokument, @IDDokumentTipStorno);
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_GetHasStorno' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDDokumentTipStorno"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> GetHasStorno(TransactionManager transactionManager, System.Int32? @IDDokument, System.Int32? @IDDokumentTipStorno)
		{
			return GetHasStorno(transactionManager, 0, int.MaxValue , @IDDokument, @IDDokumentTipStorno);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_GetHasStorno' stored procedure. 
		/// </summary>
		/// <param name="IDDokument"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDDokumentTipStorno"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> GetHasStorno(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDDokument, System.Int32? @IDDokumentTipStorno);
		
		#endregion
		
		#region _tblDokument_Get_Bez_Veze_DatumOd 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_DatumOd' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_DatumOd(System.DateTime? @DatumOd)
		{
			return Get_Bez_Veze_DatumOd(null, 0, int.MaxValue , @DatumOd);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_DatumOd' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_DatumOd(int start, int pageLength, System.DateTime? @DatumOd)
		{
			return Get_Bez_Veze_DatumOd(null, start, pageLength , @DatumOd);
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_DatumOd' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze_DatumOd(TransactionManager transactionManager, System.DateTime? @DatumOd)
		{
			return Get_Bez_Veze_DatumOd(transactionManager, 0, int.MaxValue , @DatumOd);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze_DatumOd' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> Get_Bez_Veze_DatumOd(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd);
		
		#endregion
		
		#region _tblDokument_Zapisi 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Zapisi' stored procedure. 
		/// </summary>
		/// <param name="IDZaZapis"> A <c>System.Int32?</c> instance.</param>
			/// <param name="IDZapisa"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Zapisi(System.Int32? @IDZaZapis, ref System.Int32? @IDZapisa)
		{
			return Zapisi(null, 0, int.MaxValue , @IDZaZapis, ref @IDZapisa);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Zapisi' stored procedure. 
		/// </summary>
		/// <param name="IDZaZapis"> A <c>System.Int32?</c> instance.</param>
			/// <param name="IDZapisa"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Zapisi(int start, int pageLength, System.Int32? @IDZaZapis, ref System.Int32? @IDZapisa)
		{
			return Zapisi(null, start, pageLength , @IDZaZapis, ref @IDZapisa);
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Zapisi' stored procedure. 
		/// </summary>
		/// <param name="IDZaZapis"> A <c>System.Int32?</c> instance.</param>
			/// <param name="IDZapisa"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Zapisi(TransactionManager transactionManager, System.Int32? @IDZaZapis, ref System.Int32? @IDZapisa)
		{
			return Zapisi(transactionManager, 0, int.MaxValue , @IDZaZapis, ref @IDZapisa);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Zapisi' stored procedure. 
		/// </summary>
		/// <param name="IDZaZapis"> A <c>System.Int32?</c> instance.</param>
			/// <param name="IDZapisa"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader Zapisi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDZaZapis, ref System.Int32? @IDZapisa);
		
		#endregion
		
		#region _tblDokument_Get_Revers_Nema_Povrat 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat' stored procedure. 
		/// </summary>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat()
		{
			return Get_Revers_Nema_Povrat(null, 0, int.MaxValue );
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat' stored procedure. 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat(int start, int pageLength)
		{
			return Get_Revers_Nema_Povrat(null, start, pageLength );
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat' stored procedure. 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat(TransactionManager transactionManager)
		{
			return Get_Revers_Nema_Povrat(transactionManager, 0, int.MaxValue );
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat' stored procedure. 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> Get_Revers_Nema_Povrat(TransactionManager transactionManager, int start, int pageLength );
		
		#endregion
		
		#region _tblDokument_Get_Bez_Veze 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze' stored procedure. 
		/// </summary>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze()
		{
			return Get_Bez_Veze(null, 0, int.MaxValue );
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze' stored procedure. 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze(int start, int pageLength)
		{
			return Get_Bez_Veze(null, start, pageLength );
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze' stored procedure. 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Bez_Veze(TransactionManager transactionManager)
		{
			return Get_Bez_Veze(transactionManager, 0, int.MaxValue );
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Bez_Veze' stored procedure. 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> Get_Bez_Veze(TransactionManager transactionManager, int start, int pageLength );
		
		#endregion
		
		#region _tblDokument_Get_Revers_Nema_Povrat_Po_ID 
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat_Po_ID' stored procedure. 
		/// </summary>
		/// <param name="IDReversToFind"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat_Po_ID(System.Int32? @IDReversToFind)
		{
			return Get_Revers_Nema_Povrat_Po_ID(null, 0, int.MaxValue , @IDReversToFind);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat_Po_ID' stored procedure. 
		/// </summary>
		/// <param name="IDReversToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat_Po_ID(int start, int pageLength, System.Int32? @IDReversToFind)
		{
			return Get_Revers_Nema_Povrat_Po_ID(null, start, pageLength , @IDReversToFind);
		}
				
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat_Po_ID' stored procedure. 
		/// </summary>
		/// <param name="IDReversToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public TList<Dokument> Get_Revers_Nema_Povrat_Po_ID(TransactionManager transactionManager, System.Int32? @IDReversToFind)
		{
			return Get_Revers_Nema_Povrat_Po_ID(transactionManager, 0, int.MaxValue , @IDReversToFind);
		}
		
		/// <summary>
		///	This method wrap the '_tblDokument_Get_Revers_Nema_Povrat_Po_ID' stored procedure. 
		/// </summary>
		/// <param name="IDReversToFind"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Dokument&gt;"/> instance.</returns>
		public abstract TList<Dokument> Get_Revers_Nema_Povrat_Po_ID(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDReversToFind);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;Dokument&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;Dokument&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<Dokument> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<Dokument> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.Dokument c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("Dokument")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.DokumentColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.DokumentColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<Dokument>(
			key.ToString(), // EntityTrackingKey
			"Dokument",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.Dokument();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.IDDokumentTip = (System.Int32)reader["IDDokumentTip"];
			c.Oznaka = (System.String)reader["Oznaka"];
			c.Datum = (System.DateTime)reader["Datum"];
			c.DatumDo = reader.IsDBNull(reader.GetOrdinal("DatumDo")) ? null : (System.DateTime?)reader["DatumDo"];
			c.Napomena = reader.IsDBNull(reader.GetOrdinal("Napomena")) ? null : (System.String)reader["Napomena"];
			c.Napomena2 = reader.IsDBNull(reader.GetOrdinal("Napomena2")) ? null : (System.String)reader["Napomena2"];
			c.IDKlijent = reader.IsDBNull(reader.GetOrdinal("IDKlijent")) ? null : (System.Int32?)reader["IDKlijent"];
			c.IDOrganizacijaOd = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaOd")) ? null : (System.Int32?)reader["IDOrganizacijaOd"];
			c.IDOrganizacijaPrema = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaPrema")) ? null : (System.Int32?)reader["IDOrganizacijaPrema"];
			c.IDNacinTransporta = reader.IsDBNull(reader.GetOrdinal("IDNacinTransporta")) ? null : (System.Int32?)reader["IDNacinTransporta"];
			c.IDNacinPlacanja = reader.IsDBNull(reader.GetOrdinal("IDNacinPlacanja")) ? null : (System.Int32?)reader["IDNacinPlacanja"];
			c.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			c.IDUserModified = (System.Int32)reader["IDUserModified"];
			c.DateCreated = (System.DateTime)reader["DateCreated"];
			c.DateModified = (System.DateTime)reader["DateModified"];
			c.IDUserIzdao = (System.Int32)reader["IDUserIzdao"];
			c.IDUserPrimio = reader.IsDBNull(reader.GetOrdinal("IDUserPrimio")) ? null : (System.Int32?)reader["IDUserPrimio"];
			c.RedBr = reader.IsDBNull(reader.GetOrdinal("RedBr")) ? null : (System.Int32?)reader["RedBr"];
			c.NabavnaVrijednost = reader.IsDBNull(reader.GetOrdinal("NabavnaVrijednost")) ? null : (System.Decimal?)reader["NabavnaVrijednost"];
			c.PorezNabavneVrijednosti = reader.IsDBNull(reader.GetOrdinal("PorezNabavneVrijednosti")) ? null : (System.Single?)reader["PorezNabavneVrijednosti"];
			c.IDStatus = (System.Int32)reader["IDStatus"];
			c.IDValute = reader.IsDBNull(reader.GetOrdinal("IDValute")) ? null : (System.Int32?)reader["IDValute"];
			c.VezaDokumenta = reader.IsDBNull(reader.GetOrdinal("VezaDokumenta")) ? null : (System.String)reader["VezaDokumenta"];
			c.IDOrganizacijaZiroRacun = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaZiroRacun")) ? null : (System.Int32?)reader["IDOrganizacijaZiroRacun"];
			c.DokumentMijenjaCijenu = (System.Int32)reader["DokumentMijenjaCijenu"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Dokument"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Dokument"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.Dokument entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.IDDokumentTip = (System.Int32)reader["IDDokumentTip"];
			entity.Oznaka = (System.String)reader["Oznaka"];
			entity.Datum = (System.DateTime)reader["Datum"];
			entity.DatumDo = reader.IsDBNull(reader.GetOrdinal("DatumDo")) ? null : (System.DateTime?)reader["DatumDo"];
			entity.Napomena = reader.IsDBNull(reader.GetOrdinal("Napomena")) ? null : (System.String)reader["Napomena"];
			entity.Napomena2 = reader.IsDBNull(reader.GetOrdinal("Napomena2")) ? null : (System.String)reader["Napomena2"];
			entity.IDKlijent = reader.IsDBNull(reader.GetOrdinal("IDKlijent")) ? null : (System.Int32?)reader["IDKlijent"];
			entity.IDOrganizacijaOd = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaOd")) ? null : (System.Int32?)reader["IDOrganizacijaOd"];
			entity.IDOrganizacijaPrema = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaPrema")) ? null : (System.Int32?)reader["IDOrganizacijaPrema"];
			entity.IDNacinTransporta = reader.IsDBNull(reader.GetOrdinal("IDNacinTransporta")) ? null : (System.Int32?)reader["IDNacinTransporta"];
			entity.IDNacinPlacanja = reader.IsDBNull(reader.GetOrdinal("IDNacinPlacanja")) ? null : (System.Int32?)reader["IDNacinPlacanja"];
			entity.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			entity.IDUserModified = (System.Int32)reader["IDUserModified"];
			entity.DateCreated = (System.DateTime)reader["DateCreated"];
			entity.DateModified = (System.DateTime)reader["DateModified"];
			entity.IDUserIzdao = (System.Int32)reader["IDUserIzdao"];
			entity.IDUserPrimio = reader.IsDBNull(reader.GetOrdinal("IDUserPrimio")) ? null : (System.Int32?)reader["IDUserPrimio"];
			entity.RedBr = reader.IsDBNull(reader.GetOrdinal("RedBr")) ? null : (System.Int32?)reader["RedBr"];
			entity.NabavnaVrijednost = reader.IsDBNull(reader.GetOrdinal("NabavnaVrijednost")) ? null : (System.Decimal?)reader["NabavnaVrijednost"];
			entity.PorezNabavneVrijednosti = reader.IsDBNull(reader.GetOrdinal("PorezNabavneVrijednosti")) ? null : (System.Single?)reader["PorezNabavneVrijednosti"];
			entity.IDStatus = (System.Int32)reader["IDStatus"];
			entity.IDValute = reader.IsDBNull(reader.GetOrdinal("IDValute")) ? null : (System.Int32?)reader["IDValute"];
			entity.VezaDokumenta = reader.IsDBNull(reader.GetOrdinal("VezaDokumenta")) ? null : (System.String)reader["VezaDokumenta"];
			entity.IDOrganizacijaZiroRacun = reader.IsDBNull(reader.GetOrdinal("IDOrganizacijaZiroRacun")) ? null : (System.Int32?)reader["IDOrganizacijaZiroRacun"];
			entity.DokumentMijenjaCijenu = (System.Int32)reader["DokumentMijenjaCijenu"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Dokument"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Dokument"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.Dokument entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.IDDokumentTip = (System.Int32)dataRow["IDDokumentTip"];
			entity.Oznaka = (System.String)dataRow["Oznaka"];
			entity.Datum = (System.DateTime)dataRow["Datum"];
			entity.DatumDo = Convert.IsDBNull(dataRow["DatumDo"]) ? null : (System.DateTime?)dataRow["DatumDo"];
			entity.Napomena = Convert.IsDBNull(dataRow["Napomena"]) ? null : (System.String)dataRow["Napomena"];
			entity.Napomena2 = Convert.IsDBNull(dataRow["Napomena2"]) ? null : (System.String)dataRow["Napomena2"];
			entity.IDKlijent = Convert.IsDBNull(dataRow["IDKlijent"]) ? null : (System.Int32?)dataRow["IDKlijent"];
			entity.IDOrganizacijaOd = Convert.IsDBNull(dataRow["IDOrganizacijaOd"]) ? null : (System.Int32?)dataRow["IDOrganizacijaOd"];
			entity.IDOrganizacijaPrema = Convert.IsDBNull(dataRow["IDOrganizacijaPrema"]) ? null : (System.Int32?)dataRow["IDOrganizacijaPrema"];
			entity.IDNacinTransporta = Convert.IsDBNull(dataRow["IDNacinTransporta"]) ? null : (System.Int32?)dataRow["IDNacinTransporta"];
			entity.IDNacinPlacanja = Convert.IsDBNull(dataRow["IDNacinPlacanja"]) ? null : (System.Int32?)dataRow["IDNacinPlacanja"];
			entity.IDUserCreated = (System.Int32)dataRow["IDUserCreated"];
			entity.IDUserModified = (System.Int32)dataRow["IDUserModified"];
			entity.DateCreated = (System.DateTime)dataRow["DateCreated"];
			entity.DateModified = (System.DateTime)dataRow["DateModified"];
			entity.IDUserIzdao = (System.Int32)dataRow["IDUserIzdao"];
			entity.IDUserPrimio = Convert.IsDBNull(dataRow["IDUserPrimio"]) ? null : (System.Int32?)dataRow["IDUserPrimio"];
			entity.RedBr = Convert.IsDBNull(dataRow["RedBr"]) ? null : (System.Int32?)dataRow["RedBr"];
			entity.NabavnaVrijednost = Convert.IsDBNull(dataRow["NabavnaVrijednost"]) ? null : (System.Decimal?)dataRow["NabavnaVrijednost"];
			entity.PorezNabavneVrijednosti = Convert.IsDBNull(dataRow["PorezNabavneVrijednosti"]) ? null : (System.Single?)dataRow["PorezNabavneVrijednosti"];
			entity.IDStatus = (System.Int32)dataRow["IDStatus"];
			entity.IDValute = Convert.IsDBNull(dataRow["IDValute"]) ? null : (System.Int32?)dataRow["IDValute"];
			entity.VezaDokumenta = Convert.IsDBNull(dataRow["VezaDokumenta"]) ? null : (System.String)dataRow["VezaDokumenta"];
			entity.IDOrganizacijaZiroRacun = Convert.IsDBNull(dataRow["IDOrganizacijaZiroRacun"]) ? null : (System.Int32?)dataRow["IDOrganizacijaZiroRacun"];
			entity.DokumentMijenjaCijenu = (System.Int32)dataRow["DokumentMijenjaCijenu"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Dokument"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Dokument Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.Dokument entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IDUserPrimioSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserPrimioSource", deepLoadType, innerList) 
				&& entity.IDUserPrimioSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDUserPrimio ?? (int)0);
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserPrimioSource = tmpEntity;
				else
					entity.IDUserPrimioSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, (entity.IDUserPrimio ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserPrimioSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserPrimioSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserPrimioSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserPrimioSource

			#region IDUserIzdaoSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserIzdaoSource", deepLoadType, innerList) 
				&& entity.IDUserIzdaoSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUserIzdao;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserIzdaoSource = tmpEntity;
				else
					entity.IDUserIzdaoSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUserIzdao);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserIzdaoSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserIzdaoSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserIzdaoSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserIzdaoSource

			#region IDDokumentTipSource	
			if (CanDeepLoad(entity, "DokumentTip|IDDokumentTipSource", deepLoadType, innerList) 
				&& entity.IDDokumentTipSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDDokumentTip;
				DokumentTip tmpEntity = EntityManager.LocateEntity<DokumentTip>(EntityLocator.ConstructKeyFromPkItems(typeof(DokumentTip), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDDokumentTipSource = tmpEntity;
				else
					entity.IDDokumentTipSource = DataRepository.DokumentTipProvider.GetByID(transactionManager, entity.IDDokumentTip);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDDokumentTipSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDDokumentTipSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DokumentTipProvider.DeepLoad(transactionManager, entity.IDDokumentTipSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDDokumentTipSource

			#region IDKlijentSource	
			if (CanDeepLoad(entity, "Klijent|IDKlijentSource", deepLoadType, innerList) 
				&& entity.IDKlijentSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDKlijent ?? (int)0);
				Klijent tmpEntity = EntityManager.LocateEntity<Klijent>(EntityLocator.ConstructKeyFromPkItems(typeof(Klijent), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDKlijentSource = tmpEntity;
				else
					entity.IDKlijentSource = DataRepository.KlijentProvider.GetByID(transactionManager, (entity.IDKlijent ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDKlijentSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDKlijentSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.KlijentProvider.DeepLoad(transactionManager, entity.IDKlijentSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDKlijentSource

			#region IDNacinTransportaSource	
			if (CanDeepLoad(entity, "NacinTransporta|IDNacinTransportaSource", deepLoadType, innerList) 
				&& entity.IDNacinTransportaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDNacinTransporta ?? (int)0);
				NacinTransporta tmpEntity = EntityManager.LocateEntity<NacinTransporta>(EntityLocator.ConstructKeyFromPkItems(typeof(NacinTransporta), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDNacinTransportaSource = tmpEntity;
				else
					entity.IDNacinTransportaSource = DataRepository.NacinTransportaProvider.GetByID(transactionManager, (entity.IDNacinTransporta ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDNacinTransportaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDNacinTransportaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NacinTransportaProvider.DeepLoad(transactionManager, entity.IDNacinTransportaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDNacinTransportaSource

			#region IDNacinPlacanjaSource	
			if (CanDeepLoad(entity, "NacinPlacanja|IDNacinPlacanjaSource", deepLoadType, innerList) 
				&& entity.IDNacinPlacanjaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDNacinPlacanja ?? (int)0);
				NacinPlacanja tmpEntity = EntityManager.LocateEntity<NacinPlacanja>(EntityLocator.ConstructKeyFromPkItems(typeof(NacinPlacanja), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDNacinPlacanjaSource = tmpEntity;
				else
					entity.IDNacinPlacanjaSource = DataRepository.NacinPlacanjaProvider.GetByID(transactionManager, (entity.IDNacinPlacanja ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDNacinPlacanjaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDNacinPlacanjaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.NacinPlacanjaProvider.DeepLoad(transactionManager, entity.IDNacinPlacanjaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDNacinPlacanjaSource

			#region IDOrganizacijaOdSource	
			if (CanDeepLoad(entity, "Organizacija|IDOrganizacijaOdSource", deepLoadType, innerList) 
				&& entity.IDOrganizacijaOdSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDOrganizacijaOd ?? (int)0);
				Organizacija tmpEntity = EntityManager.LocateEntity<Organizacija>(EntityLocator.ConstructKeyFromPkItems(typeof(Organizacija), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDOrganizacijaOdSource = tmpEntity;
				else
					entity.IDOrganizacijaOdSource = DataRepository.OrganizacijaProvider.GetByID(transactionManager, (entity.IDOrganizacijaOd ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDOrganizacijaOdSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDOrganizacijaOdSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.OrganizacijaProvider.DeepLoad(transactionManager, entity.IDOrganizacijaOdSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDOrganizacijaOdSource

			#region IDOrganizacijaPremaSource	
			if (CanDeepLoad(entity, "Organizacija|IDOrganizacijaPremaSource", deepLoadType, innerList) 
				&& entity.IDOrganizacijaPremaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDOrganizacijaPrema ?? (int)0);
				Organizacija tmpEntity = EntityManager.LocateEntity<Organizacija>(EntityLocator.ConstructKeyFromPkItems(typeof(Organizacija), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDOrganizacijaPremaSource = tmpEntity;
				else
					entity.IDOrganizacijaPremaSource = DataRepository.OrganizacijaProvider.GetByID(transactionManager, (entity.IDOrganizacijaPrema ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDOrganizacijaPremaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDOrganizacijaPremaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.OrganizacijaProvider.DeepLoad(transactionManager, entity.IDOrganizacijaPremaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDOrganizacijaPremaSource

			#region IDOrganizacijaZiroRacunSource	
			if (CanDeepLoad(entity, "OrganizacijaZiroRacun|IDOrganizacijaZiroRacunSource", deepLoadType, innerList) 
				&& entity.IDOrganizacijaZiroRacunSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDOrganizacijaZiroRacun ?? (int)0);
				OrganizacijaZiroRacun tmpEntity = EntityManager.LocateEntity<OrganizacijaZiroRacun>(EntityLocator.ConstructKeyFromPkItems(typeof(OrganizacijaZiroRacun), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDOrganizacijaZiroRacunSource = tmpEntity;
				else
					entity.IDOrganizacijaZiroRacunSource = DataRepository.OrganizacijaZiroRacunProvider.GetByID(transactionManager, (entity.IDOrganizacijaZiroRacun ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDOrganizacijaZiroRacunSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDOrganizacijaZiroRacunSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.OrganizacijaZiroRacunProvider.DeepLoad(transactionManager, entity.IDOrganizacijaZiroRacunSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDOrganizacijaZiroRacunSource

			#region IDValuteSource	
			if (CanDeepLoad(entity, "Valuta|IDValuteSource", deepLoadType, innerList) 
				&& entity.IDValuteSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDValute ?? (int)0);
				Valuta tmpEntity = EntityManager.LocateEntity<Valuta>(EntityLocator.ConstructKeyFromPkItems(typeof(Valuta), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDValuteSource = tmpEntity;
				else
					entity.IDValuteSource = DataRepository.ValutaProvider.GetByID(transactionManager, (entity.IDValute ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDValuteSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDValuteSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.ValutaProvider.DeepLoad(transactionManager, entity.IDValuteSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDValuteSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region DokumentDodatakCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<DokumentDodatak>|DokumentDodatakCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentDodatakCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.DokumentDodatakCollection = DataRepository.DokumentDodatakProvider.GetByIDDokument(transactionManager, entity.ID);

				if (deep && entity.DokumentDodatakCollection.Count > 0)
				{
					deepHandles.Add("DokumentDodatakCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<DokumentDodatak>) DataRepository.DokumentDodatakProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentDodatakCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Dokument>|DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza", deepLoadType, innerList))
			{
				entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza = DataRepository.DokumentProvider.GetByIDChildFromRadniNalogVeza(transactionManager, entity.ID);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza != null)
				{
					deepHandles.Add("DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Dokument >) DataRepository.DokumentProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Dokument>|DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza", deepLoadType, innerList))
			{
				entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza = DataRepository.DokumentProvider.GetByIDParentFromRadniNalogVeza(transactionManager, entity.ID);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza != null)
				{
					deepHandles.Add("DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Dokument >) DataRepository.DokumentProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region DokumentPlacanjeCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<DokumentPlacanje>|DokumentPlacanjeCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentPlacanjeCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.DokumentPlacanjeCollection = DataRepository.DokumentPlacanjeProvider.GetByIDDokument(transactionManager, entity.ID);

				if (deep && entity.DokumentPlacanjeCollection.Count > 0)
				{
					deepHandles.Add("DokumentPlacanjeCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<DokumentPlacanje>) DataRepository.DokumentPlacanjeProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentPlacanjeCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region KnjizenjeStavkaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<KnjizenjeStavka>|KnjizenjeStavkaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'KnjizenjeStavkaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.KnjizenjeStavkaCollection = DataRepository.KnjizenjeStavkaProvider.GetByIDDokument(transactionManager, entity.ID);

				if (deep && entity.KnjizenjeStavkaCollection.Count > 0)
				{
					deepHandles.Add("KnjizenjeStavkaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<KnjizenjeStavka>) DataRepository.KnjizenjeStavkaProvider.DeepLoad,
						new object[] { transactionManager, entity.KnjizenjeStavkaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region DokumentCollection_From_VezaIDChildFromVeza
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Dokument>|DokumentCollection_From_VezaIDChildFromVeza", deepLoadType, innerList))
			{
				entity.DokumentCollection_From_VezaIDChildFromVeza = DataRepository.DokumentProvider.GetByIDChildFromVeza(transactionManager, entity.ID);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentCollection_From_VezaIDChildFromVeza' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DokumentCollection_From_VezaIDChildFromVeza != null)
				{
					deepHandles.Add("DokumentCollection_From_VezaIDChildFromVeza",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Dokument >) DataRepository.DokumentProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentCollection_From_VezaIDChildFromVeza, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			#region DokumentZaglavljeCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<DokumentZaglavlje>|DokumentZaglavljeCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentZaglavljeCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.DokumentZaglavljeCollection = DataRepository.DokumentZaglavljeProvider.GetByIDDokument(transactionManager, entity.ID);

				if (deep && entity.DokumentZaglavljeCollection.Count > 0)
				{
					deepHandles.Add("DokumentZaglavljeCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<DokumentZaglavlje>) DataRepository.DokumentZaglavljeProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentZaglavljeCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region VezaCollectionGetByIDParent
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Veza>|VezaCollectionGetByIDParent", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'VezaCollectionGetByIDParent' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.VezaCollectionGetByIDParent = DataRepository.VezaProvider.GetByIDParent(transactionManager, entity.ID);

				if (deep && entity.VezaCollectionGetByIDParent.Count > 0)
				{
					deepHandles.Add("VezaCollectionGetByIDParent",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Veza>) DataRepository.VezaProvider.DeepLoad,
						new object[] { transactionManager, entity.VezaCollectionGetByIDParent, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region RadniNalogVezaCollectionGetByIDParent
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<RadniNalogVeza>|RadniNalogVezaCollectionGetByIDParent", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'RadniNalogVezaCollectionGetByIDParent' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.RadniNalogVezaCollectionGetByIDParent = DataRepository.RadniNalogVezaProvider.GetByIDParent(transactionManager, entity.ID);

				if (deep && entity.RadniNalogVezaCollectionGetByIDParent.Count > 0)
				{
					deepHandles.Add("RadniNalogVezaCollectionGetByIDParent",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<RadniNalogVeza>) DataRepository.RadniNalogVezaProvider.DeepLoad,
						new object[] { transactionManager, entity.RadniNalogVezaCollectionGetByIDParent, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region DokumentStavkaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<DokumentStavka>|DokumentStavkaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentStavkaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.DokumentStavkaCollection = DataRepository.DokumentStavkaProvider.GetByIDDokument(transactionManager, entity.ID);

				if (deep && entity.DokumentStavkaCollection.Count > 0)
				{
					deepHandles.Add("DokumentStavkaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<DokumentStavka>) DataRepository.DokumentStavkaProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentStavkaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region VezaCollectionGetByIDChild
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Veza>|VezaCollectionGetByIDChild", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'VezaCollectionGetByIDChild' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.VezaCollectionGetByIDChild = DataRepository.VezaProvider.GetByIDChild(transactionManager, entity.ID);

				if (deep && entity.VezaCollectionGetByIDChild.Count > 0)
				{
					deepHandles.Add("VezaCollectionGetByIDChild",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Veza>) DataRepository.VezaProvider.DeepLoad,
						new object[] { transactionManager, entity.VezaCollectionGetByIDChild, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region RadniNalogVezaCollectionGetByIDChild
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<RadniNalogVeza>|RadniNalogVezaCollectionGetByIDChild", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'RadniNalogVezaCollectionGetByIDChild' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.RadniNalogVezaCollectionGetByIDChild = DataRepository.RadniNalogVezaProvider.GetByIDChild(transactionManager, entity.ID);

				if (deep && entity.RadniNalogVezaCollectionGetByIDChild.Count > 0)
				{
					deepHandles.Add("RadniNalogVezaCollectionGetByIDChild",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<RadniNalogVeza>) DataRepository.RadniNalogVezaProvider.DeepLoad,
						new object[] { transactionManager, entity.RadniNalogVezaCollectionGetByIDChild, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region DokumentCollection_From_VezaIDParentFromVeza
			// RelationshipType.ManyToMany
			if (CanDeepLoad(entity, "List<Dokument>|DokumentCollection_From_VezaIDParentFromVeza", deepLoadType, innerList))
			{
				entity.DokumentCollection_From_VezaIDParentFromVeza = DataRepository.DokumentProvider.GetByIDParentFromVeza(transactionManager, entity.ID);			 
		
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentCollection_From_VezaIDParentFromVeza' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.DokumentCollection_From_VezaIDParentFromVeza != null)
				{
					deepHandles.Add("DokumentCollection_From_VezaIDParentFromVeza",
						new KeyValuePair<Delegate, object>((DeepLoadHandle< Dokument >) DataRepository.DokumentProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentCollection_From_VezaIDParentFromVeza, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion
			
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.Dokument object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.Dokument instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Dokument Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.Dokument entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IDUserPrimioSource
			if (CanDeepSave(entity, "Djelatnik|IDUserPrimioSource", deepSaveType, innerList) 
				&& entity.IDUserPrimioSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserPrimioSource);
				entity.IDUserPrimio = entity.IDUserPrimioSource.ID;
			}
			#endregion 
			
			#region IDUserIzdaoSource
			if (CanDeepSave(entity, "Djelatnik|IDUserIzdaoSource", deepSaveType, innerList) 
				&& entity.IDUserIzdaoSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserIzdaoSource);
				entity.IDUserIzdao = entity.IDUserIzdaoSource.ID;
			}
			#endregion 
			
			#region IDDokumentTipSource
			if (CanDeepSave(entity, "DokumentTip|IDDokumentTipSource", deepSaveType, innerList) 
				&& entity.IDDokumentTipSource != null)
			{
				DataRepository.DokumentTipProvider.Save(transactionManager, entity.IDDokumentTipSource);
				entity.IDDokumentTip = entity.IDDokumentTipSource.ID;
			}
			#endregion 
			
			#region IDKlijentSource
			if (CanDeepSave(entity, "Klijent|IDKlijentSource", deepSaveType, innerList) 
				&& entity.IDKlijentSource != null)
			{
				DataRepository.KlijentProvider.Save(transactionManager, entity.IDKlijentSource);
				entity.IDKlijent = entity.IDKlijentSource.ID;
			}
			#endregion 
			
			#region IDNacinTransportaSource
			if (CanDeepSave(entity, "NacinTransporta|IDNacinTransportaSource", deepSaveType, innerList) 
				&& entity.IDNacinTransportaSource != null)
			{
				DataRepository.NacinTransportaProvider.Save(transactionManager, entity.IDNacinTransportaSource);
				entity.IDNacinTransporta = entity.IDNacinTransportaSource.ID;
			}
			#endregion 
			
			#region IDNacinPlacanjaSource
			if (CanDeepSave(entity, "NacinPlacanja|IDNacinPlacanjaSource", deepSaveType, innerList) 
				&& entity.IDNacinPlacanjaSource != null)
			{
				DataRepository.NacinPlacanjaProvider.Save(transactionManager, entity.IDNacinPlacanjaSource);
				entity.IDNacinPlacanja = entity.IDNacinPlacanjaSource.ID;
			}
			#endregion 
			
			#region IDOrganizacijaOdSource
			if (CanDeepSave(entity, "Organizacija|IDOrganizacijaOdSource", deepSaveType, innerList) 
				&& entity.IDOrganizacijaOdSource != null)
			{
				DataRepository.OrganizacijaProvider.Save(transactionManager, entity.IDOrganizacijaOdSource);
				entity.IDOrganizacijaOd = entity.IDOrganizacijaOdSource.ID;
			}
			#endregion 
			
			#region IDOrganizacijaPremaSource
			if (CanDeepSave(entity, "Organizacija|IDOrganizacijaPremaSource", deepSaveType, innerList) 
				&& entity.IDOrganizacijaPremaSource != null)
			{
				DataRepository.OrganizacijaProvider.Save(transactionManager, entity.IDOrganizacijaPremaSource);
				entity.IDOrganizacijaPrema = entity.IDOrganizacijaPremaSource.ID;
			}
			#endregion 
			
			#region IDOrganizacijaZiroRacunSource
			if (CanDeepSave(entity, "OrganizacijaZiroRacun|IDOrganizacijaZiroRacunSource", deepSaveType, innerList) 
				&& entity.IDOrganizacijaZiroRacunSource != null)
			{
				DataRepository.OrganizacijaZiroRacunProvider.Save(transactionManager, entity.IDOrganizacijaZiroRacunSource);
				entity.IDOrganizacijaZiroRacun = entity.IDOrganizacijaZiroRacunSource.ID;
			}
			#endregion 
			
			#region IDValuteSource
			if (CanDeepSave(entity, "Valuta|IDValuteSource", deepSaveType, innerList) 
				&& entity.IDValuteSource != null)
			{
				DataRepository.ValutaProvider.Save(transactionManager, entity.IDValuteSource);
				entity.IDValute = entity.IDValuteSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();

			#region DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza>
			if (CanDeepSave(entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza, "List<Dokument>|DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza", deepSaveType, innerList))
			{
				if (entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza.Count > 0 || entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza.DeletedItems.Count > 0)
				{
					DataRepository.DokumentProvider.Save(transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza); 
					deepHandles.Add(
						(DeepSaveHandle<Dokument>) DataRepository.DokumentProvider.DeepSave,
						new object[] { transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza, deepSaveType, childTypes, innerList }
					);
				}
			}
			#endregion 

			#region DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza>
			if (CanDeepSave(entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza, "List<Dokument>|DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza", deepSaveType, innerList))
			{
				if (entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza.Count > 0 || entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza.DeletedItems.Count > 0)
				{
					DataRepository.DokumentProvider.Save(transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza); 
					deepHandles.Add(
						(DeepSaveHandle<Dokument>) DataRepository.DokumentProvider.DeepSave,
						new object[] { transactionManager, entity.DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza, deepSaveType, childTypes, innerList }
					);
				}
			}
			#endregion 

			#region DokumentCollection_From_VezaIDChildFromVeza>
			if (CanDeepSave(entity.DokumentCollection_From_VezaIDChildFromVeza, "List<Dokument>|DokumentCollection_From_VezaIDChildFromVeza", deepSaveType, innerList))
			{
				if (entity.DokumentCollection_From_VezaIDChildFromVeza.Count > 0 || entity.DokumentCollection_From_VezaIDChildFromVeza.DeletedItems.Count > 0)
				{
					DataRepository.DokumentProvider.Save(transactionManager, entity.DokumentCollection_From_VezaIDChildFromVeza); 
					deepHandles.Add(
						(DeepSaveHandle<Dokument>) DataRepository.DokumentProvider.DeepSave,
						new object[] { transactionManager, entity.DokumentCollection_From_VezaIDChildFromVeza, deepSaveType, childTypes, innerList }
					);
				}
			}
			#endregion 

			#region DokumentCollection_From_VezaIDParentFromVeza>
			if (CanDeepSave(entity.DokumentCollection_From_VezaIDParentFromVeza, "List<Dokument>|DokumentCollection_From_VezaIDParentFromVeza", deepSaveType, innerList))
			{
				if (entity.DokumentCollection_From_VezaIDParentFromVeza.Count > 0 || entity.DokumentCollection_From_VezaIDParentFromVeza.DeletedItems.Count > 0)
				{
					DataRepository.DokumentProvider.Save(transactionManager, entity.DokumentCollection_From_VezaIDParentFromVeza); 
					deepHandles.Add(
						(DeepSaveHandle<Dokument>) DataRepository.DokumentProvider.DeepSave,
						new object[] { transactionManager, entity.DokumentCollection_From_VezaIDParentFromVeza, deepSaveType, childTypes, innerList }
					);
				}
			}
			#endregion 
	
			#region List<DokumentDodatak>
				if (CanDeepSave(entity.DokumentDodatakCollection, "List<DokumentDodatak>|DokumentDodatakCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(DokumentDodatak child in entity.DokumentDodatakCollection)
					{
						if(child.IDDokumentSource != null)
							child.IDDokument = child.IDDokumentSource.ID;
						else
							child.IDDokument = entity.ID;

					}

					if (entity.DokumentDodatakCollection.Count > 0 || entity.DokumentDodatakCollection.DeletedItems.Count > 0)
					{
						DataRepository.DokumentDodatakProvider.Save(transactionManager, entity.DokumentDodatakCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< DokumentDodatak >) DataRepository.DokumentDodatakProvider.DeepSave,
							new object[] { transactionManager, entity.DokumentDodatakCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<DokumentPlacanje>
				if (CanDeepSave(entity.DokumentPlacanjeCollection, "List<DokumentPlacanje>|DokumentPlacanjeCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(DokumentPlacanje child in entity.DokumentPlacanjeCollection)
					{
						if(child.IDDokumentSource != null)
							child.IDDokument = child.IDDokumentSource.ID;
						else
							child.IDDokument = entity.ID;

					}

					if (entity.DokumentPlacanjeCollection.Count > 0 || entity.DokumentPlacanjeCollection.DeletedItems.Count > 0)
					{
						DataRepository.DokumentPlacanjeProvider.Save(transactionManager, entity.DokumentPlacanjeCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< DokumentPlacanje >) DataRepository.DokumentPlacanjeProvider.DeepSave,
							new object[] { transactionManager, entity.DokumentPlacanjeCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<KnjizenjeStavka>
				if (CanDeepSave(entity.KnjizenjeStavkaCollection, "List<KnjizenjeStavka>|KnjizenjeStavkaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(KnjizenjeStavka child in entity.KnjizenjeStavkaCollection)
					{
						if(child.IDDokumentSource != null)
							child.IDDokument = child.IDDokumentSource.ID;
						else
							child.IDDokument = entity.ID;

					}

					if (entity.KnjizenjeStavkaCollection.Count > 0 || entity.KnjizenjeStavkaCollection.DeletedItems.Count > 0)
					{
						DataRepository.KnjizenjeStavkaProvider.Save(transactionManager, entity.KnjizenjeStavkaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< KnjizenjeStavka >) DataRepository.KnjizenjeStavkaProvider.DeepSave,
							new object[] { transactionManager, entity.KnjizenjeStavkaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<DokumentZaglavlje>
				if (CanDeepSave(entity.DokumentZaglavljeCollection, "List<DokumentZaglavlje>|DokumentZaglavljeCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(DokumentZaglavlje child in entity.DokumentZaglavljeCollection)
					{
						if(child.IDDokumentSource != null)
							child.IDDokument = child.IDDokumentSource.ID;
						else
							child.IDDokument = entity.ID;

					}

					if (entity.DokumentZaglavljeCollection.Count > 0 || entity.DokumentZaglavljeCollection.DeletedItems.Count > 0)
					{
						DataRepository.DokumentZaglavljeProvider.Save(transactionManager, entity.DokumentZaglavljeCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< DokumentZaglavlje >) DataRepository.DokumentZaglavljeProvider.DeepSave,
							new object[] { transactionManager, entity.DokumentZaglavljeCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Veza>
				if (CanDeepSave(entity.VezaCollectionGetByIDParent, "List<Veza>|VezaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Veza child in entity.VezaCollectionGetByIDParent)
					{
						if(child.IDParentSource != null)
							child.IDParent = child.IDParentSource.ID;
						else
							child.IDParent = entity.ID;

						//Handle right table of DokumentCollection_From_VezaIDChildFromVeza
						if(child.IDParentSource != null)
						{
								child.IDParent = child.IDParentSource.ID;

						}

						//Handle right table of DokumentCollection_From_VezaIDChildFromVeza
						if(child.IDChildSource != null)
						{
								child.IDChild = child.IDChildSource.ID;

						}

					}

					if (entity.VezaCollectionGetByIDParent.Count > 0 || entity.VezaCollectionGetByIDParent.DeletedItems.Count > 0)
					{
						DataRepository.VezaProvider.Save(transactionManager, entity.VezaCollectionGetByIDParent);
						
						deepHandles.Add(
							(DeepSaveHandle< Veza >) DataRepository.VezaProvider.DeepSave,
							new object[] { transactionManager, entity.VezaCollectionGetByIDParent, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<RadniNalogVeza>
				if (CanDeepSave(entity.RadniNalogVezaCollectionGetByIDParent, "List<RadniNalogVeza>|RadniNalogVezaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(RadniNalogVeza child in entity.RadniNalogVezaCollectionGetByIDParent)
					{
						if(child.IDParentSource != null)
							child.IDParent = child.IDParentSource.ID;
						else
							child.IDParent = entity.ID;

						//Handle right table of DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza
						if(child.IDParentSource != null)
						{
								child.IDParent = child.IDParentSource.ID;

						}

						//Handle right table of DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza
						if(child.IDChildSource != null)
						{
								child.IDChild = child.IDChildSource.ID;

						}

					}

					if (entity.RadniNalogVezaCollectionGetByIDParent.Count > 0 || entity.RadniNalogVezaCollectionGetByIDParent.DeletedItems.Count > 0)
					{
						DataRepository.RadniNalogVezaProvider.Save(transactionManager, entity.RadniNalogVezaCollectionGetByIDParent);
						
						deepHandles.Add(
							(DeepSaveHandle< RadniNalogVeza >) DataRepository.RadniNalogVezaProvider.DeepSave,
							new object[] { transactionManager, entity.RadniNalogVezaCollectionGetByIDParent, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<DokumentStavka>
				if (CanDeepSave(entity.DokumentStavkaCollection, "List<DokumentStavka>|DokumentStavkaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(DokumentStavka child in entity.DokumentStavkaCollection)
					{
						if(child.IDDokumentSource != null)
							child.IDDokument = child.IDDokumentSource.ID;
						else
							child.IDDokument = entity.ID;

					}

					if (entity.DokumentStavkaCollection.Count > 0 || entity.DokumentStavkaCollection.DeletedItems.Count > 0)
					{
						DataRepository.DokumentStavkaProvider.Save(transactionManager, entity.DokumentStavkaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< DokumentStavka >) DataRepository.DokumentStavkaProvider.DeepSave,
							new object[] { transactionManager, entity.DokumentStavkaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Veza>
				if (CanDeepSave(entity.VezaCollectionGetByIDChild, "List<Veza>|VezaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Veza child in entity.VezaCollectionGetByIDChild)
					{
						if(child.IDChildSource != null)
							child.IDChild = child.IDChildSource.ID;
						else
							child.IDChild = entity.ID;

						//Handle right table of DokumentCollection_From_VezaIDChildFromVeza
						if(child.IDParentSource != null)
						{
								child.IDParent = child.IDParentSource.ID;

						}

						//Handle right table of DokumentCollection_From_VezaIDChildFromVeza
						if(child.IDChildSource != null)
						{
								child.IDChild = child.IDChildSource.ID;

						}

					}

					if (entity.VezaCollectionGetByIDChild.Count > 0 || entity.VezaCollectionGetByIDChild.DeletedItems.Count > 0)
					{
						DataRepository.VezaProvider.Save(transactionManager, entity.VezaCollectionGetByIDChild);
						
						deepHandles.Add(
							(DeepSaveHandle< Veza >) DataRepository.VezaProvider.DeepSave,
							new object[] { transactionManager, entity.VezaCollectionGetByIDChild, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<RadniNalogVeza>
				if (CanDeepSave(entity.RadniNalogVezaCollectionGetByIDChild, "List<RadniNalogVeza>|RadniNalogVezaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(RadniNalogVeza child in entity.RadniNalogVezaCollectionGetByIDChild)
					{
						if(child.IDChildSource != null)
							child.IDChild = child.IDChildSource.ID;
						else
							child.IDChild = entity.ID;

						//Handle right table of DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza
						if(child.IDParentSource != null)
						{
								child.IDParent = child.IDParentSource.ID;

						}

						//Handle right table of DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza
						if(child.IDChildSource != null)
						{
								child.IDChild = child.IDChildSource.ID;

						}

					}

					if (entity.RadniNalogVezaCollectionGetByIDChild.Count > 0 || entity.RadniNalogVezaCollectionGetByIDChild.DeletedItems.Count > 0)
					{
						DataRepository.RadniNalogVezaProvider.Save(transactionManager, entity.RadniNalogVezaCollectionGetByIDChild);
						
						deepHandles.Add(
							(DeepSaveHandle< RadniNalogVeza >) DataRepository.RadniNalogVezaProvider.DeepSave,
							new object[] { transactionManager, entity.RadniNalogVezaCollectionGetByIDChild, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region DokumentChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.Dokument</c>
	///</summary>
	public enum DokumentChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Djelatnik</c> at IDUserPrimioSource
		///</summary>
		[ChildEntityType(typeof(Djelatnik))]
		Djelatnik,
			
		///<summary>
		/// Composite Property for <c>DokumentTip</c> at IDDokumentTipSource
		///</summary>
		[ChildEntityType(typeof(DokumentTip))]
		DokumentTip,
			
		///<summary>
		/// Composite Property for <c>Klijent</c> at IDKlijentSource
		///</summary>
		[ChildEntityType(typeof(Klijent))]
		Klijent,
			
		///<summary>
		/// Composite Property for <c>NacinTransporta</c> at IDNacinTransportaSource
		///</summary>
		[ChildEntityType(typeof(NacinTransporta))]
		NacinTransporta,
			
		///<summary>
		/// Composite Property for <c>NacinPlacanja</c> at IDNacinPlacanjaSource
		///</summary>
		[ChildEntityType(typeof(NacinPlacanja))]
		NacinPlacanja,
			
		///<summary>
		/// Composite Property for <c>Organizacija</c> at IDOrganizacijaOdSource
		///</summary>
		[ChildEntityType(typeof(Organizacija))]
		Organizacija,
			
		///<summary>
		/// Composite Property for <c>OrganizacijaZiroRacun</c> at IDOrganizacijaZiroRacunSource
		///</summary>
		[ChildEntityType(typeof(OrganizacijaZiroRacun))]
		OrganizacijaZiroRacun,
			
		///<summary>
		/// Composite Property for <c>Valuta</c> at IDValuteSource
		///</summary>
		[ChildEntityType(typeof(Valuta))]
		Valuta,
	
		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for DokumentDodatakCollection
		///</summary>
		[ChildEntityType(typeof(TList<DokumentDodatak>))]
		DokumentDodatakCollection,

		///<summary>
		/// Collection of <c>Dokument</c> as ManyToMany for DokumentCollection_From_RadniNalogVeza
		///</summary>
		[ChildEntityType(typeof(TList<Dokument>))]
		DokumentCollection_From_RadniNalogVezaIDChildFromRadniNalogVeza,

		///<summary>
		/// Collection of <c>Dokument</c> as ManyToMany for DokumentCollection_From_RadniNalogVeza
		///</summary>
		[ChildEntityType(typeof(TList<Dokument>))]
		DokumentCollection_From_RadniNalogVezaIDParentFromRadniNalogVeza,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for DokumentPlacanjeCollection
		///</summary>
		[ChildEntityType(typeof(TList<DokumentPlacanje>))]
		DokumentPlacanjeCollection,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for KnjizenjeStavkaCollection
		///</summary>
		[ChildEntityType(typeof(TList<KnjizenjeStavka>))]
		KnjizenjeStavkaCollection,

		///<summary>
		/// Collection of <c>Dokument</c> as ManyToMany for DokumentCollection_From_Veza
		///</summary>
		[ChildEntityType(typeof(TList<Dokument>))]
		DokumentCollection_From_VezaIDChildFromVeza,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for DokumentZaglavljeCollection
		///</summary>
		[ChildEntityType(typeof(TList<DokumentZaglavlje>))]
		DokumentZaglavljeCollection,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for VezaCollection
		///</summary>
		[ChildEntityType(typeof(TList<Veza>))]
		VezaCollectionGetByIDParent,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for RadniNalogVezaCollection
		///</summary>
		[ChildEntityType(typeof(TList<RadniNalogVeza>))]
		RadniNalogVezaCollectionGetByIDParent,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for DokumentStavkaCollection
		///</summary>
		[ChildEntityType(typeof(TList<DokumentStavka>))]
		DokumentStavkaCollection,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for VezaCollection
		///</summary>
		[ChildEntityType(typeof(TList<Veza>))]
		VezaCollectionGetByIDChild,

		///<summary>
		/// Collection of <c>Dokument</c> as OneToMany for RadniNalogVezaCollection
		///</summary>
		[ChildEntityType(typeof(TList<RadniNalogVeza>))]
		RadniNalogVezaCollectionGetByIDChild,

		///<summary>
		/// Collection of <c>Dokument</c> as ManyToMany for DokumentCollection_From_Veza
		///</summary>
		[ChildEntityType(typeof(TList<Dokument>))]
		DokumentCollection_From_VezaIDParentFromVeza,
	}
	
	#endregion DokumentChildEntityTypes
	
	#region DokumentFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;DokumentColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Dokument"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class DokumentFilterBuilder : SqlFilterBuilder<DokumentColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the DokumentFilterBuilder class.
		/// </summary>
		public DokumentFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the DokumentFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public DokumentFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the DokumentFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public DokumentFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion DokumentFilterBuilder
	
	#region DokumentParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;DokumentColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Dokument"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class DokumentParameterBuilder : ParameterizedSqlFilterBuilder<DokumentColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the DokumentParameterBuilder class.
		/// </summary>
		public DokumentParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the DokumentParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public DokumentParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the DokumentParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public DokumentParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion DokumentParameterBuilder
} // end namespace
